package com.shenjies88.practice.designpatterns.abstractclass;

import com.shenjies88.practice.designpatterns.Battercake;

public abstract class AbstractDecorator extends Battercake {
    private final Battercake battercake;

    public AbstractDecorator(Battercake battercake) {
        this.battercake = battercake;
    }

    @Override
    public String getDesc() {
        return this.battercake.getDesc();
    }

    @Override
    public int cost() {
        return this.battercake.cost();
    }
}